package com.citsin.atlas.viewmodel

import android.app.Application
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

/**
 * citsin
 * 2019-06-04
 */
class MediaViewModelProviderFactory(private val application: Application, private val mediaTypes: Array<Int>,
                                    private val bucketId: String): ViewModelProvider.Factory{
    override fun <T : ViewModel?> create(modelClass: Class<T>): T {
        return MediaViewModel(application,mediaTypes,bucketId) as T
    }
}
